home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10381 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  994 b 

  1. Path: news.clark.net!not-for-mail
  2. From: gusty@clark.net (Harlan Messinger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Command Line Arguments
  5. Date: 7 Mar 1996 16:35:30 GMT
  6. Organization: Clark Internet Services, Inc., Ellicott City, MD USA
  7. Message-ID: <4hn38i$rmb@clarknet.clark.net>
  8. References: <4hmrkl$349n@unix1.sncc.lsu.edu>
  9. NNTP-Posting-Host: explorer.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  14.  
  15. Rajesh Marar (ieraje@unix1.sncc.lsu.edu) wrote:
  16. : In Unix programs we use argc & argv to access command-line arguments. I would 
  17. : like to know how to do it in Visual C++ windows programs ? How exactly
  18. : does one use m_lpCmdLine ?
  19.  
  20. In Visual C++ you also use argc and argv.
  21.  
  22.     int main (int argc, char *argv[]) { ... }
  23.  
  24. I think m_lpCmdLine is an alternative Visual C++-specific means of access 
  25. to the command line, making it available as a single string instead of an 
  26. array of arguments.
  27.  
  28.